package org.itboys.rpc.service.sms;

import org.itboys.ResultHolder;
import org.itboys.dto.base.Result;
import org.itboys.rpc.service.BaseRpcService;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 短信相关
 */
@Service
public class RpcSmsController extends BaseRpcService {

    /**
     * 发送短信接口
     * @param mobile
     * @return
     */
    public Result<Void> sendSms(String mobile) {
        try{
            //TODO
            return ResultHolder.getSuccessResult(null);
        }catch(Exception e) {
            logger.error("send sms error mobile = " + mobile , e);
            return ResultHolder.getExceptionResult();
        }
    }
}
